package com.cmb.ccd;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by lly on 11/15/16.
 */
@Controller
public class TestController {

    @Value("${name}")
    private String name;

    @RequestMapping("/")
    public String test(Model model) {
        System.out.println("request");
        model.addAttribute("name", name);
        return "/page/name.jsp";
    }

}
